import request from "@/utils/request";

export function getShiftByPage(query) {
  return request({
    url: `/system/shift/getShiftByPage`,
    method: "post",
    data: query,
  });
}

// 增加流程模型

export function addShift(query) {
  return request({
    url: `/system/shift/addShift`,
    method: "post",
    data: query,
  });
}
/**
 *
 * @param {*} query
 * @returns
 */
export function delShift(query) {
  return request({
    url: `/system/shift/delShift`,
    method: "post",
    data: query,
  });
}

export function updateShift(query) {
  return request({
    url: `/system/shift/updateShift`,
    method: "post",
    data: query,
  });
}
